import Vue from 'vue'
import Router from 'vue-router'
// import Home from '@/components/Home'
import List from '@/components/List'
import Order from '@/components/Order'
import OrderDetail from '@/components/OrderDetail'
import OrderList from '@/components/OrderList'
import Pay from '@/components/Pay'
import Account from '@/components/Account'
import Idphoto from '@/components/Idphoto'
import LicenPhoto from '@/components/LicenPhoto'
import Userinfo from '@/components/Userinfo'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Home',
      component: () => import('../components/forHome.vue')
    },
    {
      path: '/list',
      name: 'List',
      component: () => import('../components/forList.vue')
    },
    {
      path: '/order',
      name: 'Order',
      component: Order
    },
    {
      path: '/pay',
      name: 'Pay',
      component: Pay
    },
    {
      path: '/detail',
      name: 'OrderDetail',
      component: OrderDetail
    },
    {
      path: '/orderlist',
      name: 'OrderList',
      component: OrderList
    },
    {
      path: '/account',
      name: 'Account',
      component: () => import('../components/forAccount.vue')
    },
    {
      path: '/licenphoto',
      name: 'LicenPhoto',
      component: LicenPhoto
    },
    {
      path: '/idphoto',
      name: 'Idphoto',
      component: Idphoto
    },
    {
      path: '/userinfo',
      name: 'Userinfo',
      component: Userinfo
    },
    {
      path: '/nlist',
      name: 'nlist',
      component: () => import('../components/forList.vue')
    },
    {
      path: '/admin/order',
      name: 'aorder',
      component: () => import('../components/admin/order.vue')
    },
    {
      path: '/flight',
      name: 'flight',
      component: () => import('../components/flight.vue')
    },
    {
      path: '/flightline',
      name: 'flightline',
      component: () => import('../components/flightLine.vue')
    },
    {
      path: '/dede',
      name: 'dede',
      component: () => import('../components/adetail.vue')
    },
    {
      path: '/charge',
      name: 'charge',
      component: () => import('../components/Charge.vue')
    },
    {
      path: '/aclist',
      name: 'aclist',
      component: () => import('../components/Aclist.vue')
    },
    {
      path: '/entry',
      name: 'entry',
      component: () => import('../components/entry.vue')
    },
    // 代理中心
    {
      path: '/agent/home',
      name: 'agent_home',
      component: () => import('../components/agent/home.vue')
    },
    {
      path: '/agent/add',
      name: 'agent_add',
      component: () => import('../components/agent/add.vue')
    },
    {
      path: '/agent/order',
      name: 'agent_order',
      component: () => import('../components/agent/order.vue')
    },
    {
      path: '/agent/login',
      name: 'agent_login',
      component: () => import('../components/agent/login.vue')
    },
    {
      path: '/agent/list',
      name: 'agent_list',
      component: () => import('../components/agent/list.vue')
    },
    {
      path: '/agent/withdraw',
      name: 'agent_withdraw',
      component: () => import('../components/agent/withdaw.vue')
    },
    {
      path: '/cz/reg',
      name: 'cz_reg',
      component: () => import('../views/chezhu/reg')
    }

  ]
})
